package com.pubinfo.passbook.common.model.dto.contract;

import com.pubinfo.passbook.common.model.bo.contract.TaxInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "InvoiceData", description = "发票数据")
public class InvoiceData {
  
  @ApiModelProperty("类型")
  private String type;
  // 发票数据：合同编号，受理订单编号，开票日期，发票代码，对方单位名称，开票金额，税率，税金
  //收款：类型,订单号,发票流水,发票代码,发票号码,发票类型,购买方税号,购买方名称,销售方税号,销售方名称,发票状态,时间,税率,税额,总额
  // {"type":"2","order_number","","invoice_id":"","invoice_code":"","invoice_no":"","invoice_type":"","gmf_pin_tax_id":"","gmf_pin_tax_name":"","xsf_pin_tax_id":"","xsf_pin_tax_name":"","invoice_state":"","state_date":"","tax_rate":"","tax_amount":"","total_amount":""}
  
  //{"type":"2","order_number":["","",""],"invoice_id":"","invoice_code":"","invoice_no":"","invoice_type":"","gmf_pin_tax_id":"","gmf_pin_tax_name":"","xsf_pin_tax_id":"","xsf_pin_tax_name":"","invoice_state":"","state_date":"","tax_info":[{"tax_rate":"","tax_amount":"","total_amount":""}]}
  @ApiModelProperty("合同编号")
  private String contractCode;
  @ApiModelProperty("受理订单编号")
  private String[] orderNumber;
  @ApiModelProperty("发票流水")
  private String invoiceId;
  @ApiModelProperty("发票代码")
  private String invoiceCode;
  @ApiModelProperty("发票号码")
  private String invoiceNo;
  @ApiModelProperty("发票类型")
  private String invoiceType;
  @ApiModelProperty("购买方税号")
  private String GMFPinTaxId;
  @ApiModelProperty("购买方名称")
  private String GMFPinTaxName;
  @ApiModelProperty("销售方税号")
  private String XSFPinTaxId;
  @ApiModelProperty("销售方名称")
  private String XSFPinTaxName;
  @ApiModelProperty("发票状态")
  private String invoiceState;
  @ApiModelProperty("开票日期")
  private String stateDate;
  
  @ApiModelProperty("税率信息")
  private List<TaxInfo> taxInfo;
  
}
